import { dayjs } from 'element-plus'

export const formatTime = (time) => {
  return dayjs(time).format('YYYY年MM月DD日')
}

export const formatToLocalDate = (isoDate) => {
  return dayjs(isoDate).format('YYYY-MM-DD')
}

export const formatToLocalDateTime = (isoDate) => {
  return dayjs(isoDate).format('MM月DD日 HH点')
}

export const formatJsDateTimeToJavaDateTime = (isoDate) => {
  return dayjs(isoDate).format("YYYY-MM-DDTHH:mm:ss");
};
